package cloud.dandanit;

import cloud.dandanit.itservice.utils.GenerateRandomStr;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;

import java.util.Date;

public class testId {

    public static void main(String[] args) {
        String nanoTime = String.valueOf(System.nanoTime());
        String millTime = String.valueOf(System.currentTimeMillis());

        System.out.println(millTime.length());
        System.out.println(nanoTime.length());

        String result = millTime+nanoTime.substring(0,6);

        System.out.println(millTime+nanoTime);
        System.out.println(result);
        System.out.println(result.length());

    }
}
